import requests

url = 'http://127.0.0.1:8000/admin/'
headers = {
    'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36',
    'cookie':'sessionid=2d8zm2pl3zzlr9tq6ny1s26qjru0w19l',
    'Referer':'http://127.0.0.1:8000/admin/login/?next=/admin/'
    }
response = requests.get(url, headers=headers)
response_text = response.text
print(response_text)